package net.sourceforge.peers;

import java.net.InetAddress;

import net.sourceforge.peers.media.MediaMode;
import net.sourceforge.peers.sip.syntaxencoding.SipURI;

/**
 * 配置类接口提供基本的连接信息
 * @author Mr.Yan
 */
public interface Config {

    void save();
    InetAddress getLocalInetAddress();
    InetAddress getPublicInetAddress();
    String getUserPart();
    String getDomain();
    String getPassword();
    SipURI getOutboundProxy();
    int getSipPort();
    MediaMode getMediaMode();
    boolean isMediaDebug();
    String getMediaFile();
    int getRtpPort();
    String getAuthorizationUsername();
    void setLocalInetAddress(InetAddress inetAddress);
    void setPublicInetAddress(InetAddress inetAddress);
    void setUserPart(String userPart);
    void setDomain(String domain);
    void setPassword(String password);
    void setOutboundProxy(SipURI outboundProxy);
    void setSipPort(int sipPort);
    void setMediaMode(MediaMode mediaMode);
    void setMediaDebug(boolean mediaDebug);
    void setMediaFile(String mediaFile);
    void setRtpPort(int rtpPort);
    void setAuthorizationUsername(String authorizationUser);
}
